package com.yunduo.mapper;

import com.yunduo.entity.User;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import javax.management.relation.Role;
import java.util.List;

/**
 * 用户Mapper 接口
 */
public interface UserMapper extends BaseMapper<User> {
    //根据名称查询用户
    User selectUserByName(@Param("name") String name);
    //根据名称批量查询用户
    List<User> selectUsersByName(@Param("name")String name,@Param("count")int count);
}
